<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('action/view/index|template/default/header|action/view/menu|action/view/list|template/default/footer', '1229958101', 'action/view/index');?><?php $_TPL['titles'] = array('活动 - 首页'); ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$_SN[$space['uid']]?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/style.css);
<?php if(!empty($_SGLOBAL['space_theme'])) { ?>
@import url(theme/<?=$_SGLOBAL['space_theme']?>/style.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_css'])) { ?>
<?=$_SGLOBAL['space_css']?>
<?php } ?>
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$space['uid']?>" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div id="header">
<?php if($_SGLOBAL['ad']['header']) { ?><div id="ad_header"><?php adshow('header'); ?></div><?php } ?>
<div class="headerwarp">
<h1 class="logo"><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h1>
<ul class="menu">
<?php if($_SGLOBAL['supe_uid']) { ?>
<li><a href="space.php?do=home">首页</a></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a></li>
<li><a href="network.php">随便看看</a></li>

<?php if($_SGLOBAL['appmenu']) { ?>
<?php if($_SGLOBAL['appmenus']) { ?>
<li class="ucmenu" onmouseover="subop(this)" onmouseout="subop(this)" >
<a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a>
<ul id="ucmenu" style="display:none;">
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php if(is_array($_SGLOBAL['appmenus'])) { foreach($_SGLOBAL['appmenus'] as $value) { ?>
<li><a href="<?=$value['url']?>" title="<?=$value['name']?>" target="_blank"><?=$value['name']?></a></li>
<?php } } ?>
</ul>
</li>
<?php } else { ?>
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php } ?>
<?php } ?>

<li><a href="space.php?do=pm">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li>
<?php if(!empty($_SGLOBAL['member']['notenum'])) { ?><li class="notify"><a href="space.php?do=notice"><?=$_SGLOBAL['member']['notenum']?>条新通知</a></li><?php } ?>
<?php } else { ?>
<li><a href="index.php">首页</a></li>
<li><a href="network.php">随便看看</a></li>
<li><a href="help.php">帮助</a></li>
<?php } ?>
</ul>

<div class="nav_account">
<?php if($_SGLOBAL['supe_uid']) { ?>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" alt="<?=$_SN[$_SGLOBAL['supe_uid']]?>" width="20" height="20" /></a>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="loginName"><?=$_SN[$_SGLOBAL['supe_uid']]?></a>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?>(<?=$_SGLOBAL['supe_username']?>)<?php } ?>
<br />
<?php if(empty($_SCONFIG['closeinvite'])) { ?><a href="cp.php?ac=invite">邀请</a> | <?php } ?><a href="cp.php">设置</a> | <a href="cp.php?ac=privacy">隐私</a> | <a href="cp.php?ac=common&op=logout">退出</a>
<?php } else { ?>
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" width="20" height="20" /></a>
欢迎您<br>
<a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a> | 
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a>
<?php } ?>
</div>
</div>
</div>

<div id="wrap">

<?php if(empty($_TPL['nosidebar'])) { ?>
<div id="main">

<div id="app_sidebar">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul class="app_list" id="default_userapp">
<li><img src="image/app/doing.gif"><a href="space.php?do=doing">记录</a></li>
<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li><img src="image/app/blog.gif"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li><img src="image/app/mtag.gif"><a href="space.php?do=mtag">群组</a><em><a href="cp.php?ac=thread">话题</a></em></li>
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>

<?php if($_SCONFIG['my_status']) { ?>
<?php if(is_array($_SGLOBAL['userapp'])) { foreach($_SGLOBAL['userapp'] as $value) { ?>
<li><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></li>
<?php } } ?>
<?php } ?>
</ul>

<?php if($_SCONFIG['my_status']) { ?>
<ul class="app_list" id="my_userapp">
<?php if(is_array($_SGLOBAL['my_menu'])) { foreach($_SGLOBAL['my_menu'] as $value) { ?>
<li id="userapp_li_<?=$value['appid']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>" title="<?=$value['appname']?>"><?=$value['appname']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['my_menu_more']) { ?>
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<?php } ?>

<?php if($_SCONFIG['my_status']) { ?>
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<?php } ?>

<?php } else { ?>
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&ref" method="post">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit"  />
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="button">注册</a>
</p>
</form>
</div>
<?php } ?>
</div>

<div id="mainarea">
<?php } ?>

<?php } ?>

<style type="text/css">
@import url(action/view/default.css);
</style>
<script type="text/javascript" src="action/view/base.js"></script>
<script type="text/javascript" src="action/view/upload.js"></script>
<h2 class="title"><img src="image/app/event.gif"/>活动</h2>
<div class="tabs_header">
<ul class="tabs">
<?php if($ac == 'invite') { ?><li<?=$actives['invite']?>><a href="action.php?ac=invite&do=send&id=<?=$data['id']?>"><span>站外邀请</span></a></li><?php } ?>
<li<?=$actives['index']?>><a href="action.php?ac=index"><span>最新活动</span></a></li>
<li<?=$actives['today']?>><a href="action.php?ac=today"><span>今日活动</span></a></li>
<li<?=$actives['city']?>><a href="action.php?ac=city"><span>同城活动</span></a></li>
<li<?=$actives['my']?>><a href="action.php?ac=my"><span>我的活动</span></a></li>
<li<?=$actives['hot']?>><a href="action.php?ac=hot"><span>最热活动</span></a></li>
<li<?=$actives['ing']?>><a href="action.php?ac=ing"><span>正进行的活动</span></a></li>
<li<?=$actives['finished']?>><a href="action.php?ac=finished"><span>已结束的活动</span></a></li>
<?php if($ac == 'modify') { ?>
<li<?=$actives['modify']?>><a href="action.php?ac=modify&id=<?=$id?>"><span>修改活动</span></a></li>
<?php } else { ?>
<li<?=$actives['add']?>><a href="action.php?ac=add"><span>发起活动</span></a></li>
<?php } ?>
<?php if(ADMIN_UID == $uid) { ?><li<?=$actives['admin']?>><a href="action.php?ac=admin"><span>管理</span></a></li><?php } ?>
</ul>
</div>

<div class="h_status">
<?php if($ac == 'index' || $ac == 'today') { ?>
<span class="r_option">
<a href="action.php?ac=index&op=last">‹ 上周</a>
 |  <a href="action.php?ac=index&op=week&day=0">星期一</a>
 |  <a href="action.php?ac=index&op=week&day=1">星期二</a>
 |  <a href="action.php?ac=index&op=week&day=2">星期三</a>
 |  <a href="action.php?ac=index&op=week&day=3">星期四</a>
 |  <a href="action.php?ac=index&op=week&day=4">星期五</a>
 |  <a href="action.php?ac=index&op=week&day=5">星期六</a>
 |  <a href="action.php?ac=index&op=week&day=6">星期日</a>
 |  <a href="action.php?ac=index&op=next">下周 ›</a>
</span>
<?php if($ac == 'index') { ?>最新发起的活动<?php } else { ?><?=$xinqi?><?php } ?>
<?php } elseif($ac == 'my') { ?>
<a href='action.php?ac=my&op=index'>我的活动</a>  |  <a href='action.php?ac=my&op=join'>我参与的活动</a>  |  <a href='action.php?ac=my&op=interest'>我感兴趣的活动</a> 
<?php } elseif($ac == 'hot') { ?>
最热活动
<?php } elseif($ac == 'ing') { ?>
活动中的活动...
<?php } elseif($ac == 'city') { ?>
同城里的活动...
<?php } elseif($ac == 'finished') { ?>
已结束的活动...
<?php } ?>
</div>

<div class="s_clear">
<div class="d_content">
<?php if(empty($data)) { ?>
<div class="c_mgs"><div class="ye_r_t"><div class="ye_l_t"><div class="ye_r_b"><div class="ye_l_b">
<div class=" event_list"><div class="article c_form">还没有相关的活动</div></div>
</div></div></div></div></div>
<?php } else { ?>
<div class=" event_list">
<?php if(is_array($data)) { foreach($data as $key => $val) { ?>
<H3><?=$val['time']?> (<?=$val['xinqi']?>)</H3>
<ul>
<?php if(is_array($val['data'])) { foreach($val['data'] as $v) { ?>
<?php if($val['privite'] == 2 && $v['uid'] != $uid) { ?>
<li>这是一个私密的活动，你不能观看</li>
<?php } else { ?>
<li>
<table border="0" width=100%>
<tr>
<td valign=top width=150 align=center border=1 bordercolor='red'><a href="action.php?ac=show&id=<?=$v['id']?>"><img onerror="this.src='action/img/event.png'" width=140 alt="<?=$v['subject']?>" src="<?php if($v['picture']) { ?><?=$v['picture']?><?php } else { ?>action/img/event.png<?php } ?>"/></a></td>
<td valign=top>
<div class="event_title">
<h4>主题：<a href="action.php?ac=show&id=<?=$v['id']?>"><?=$v['subject']?></a></h4>
</div>
<div style="padding: 6px; font-size: 12px;" class="detail image_right l_text s_clear">
<table border="0">
<tbody>
<tr><td width="60" valign="top">组织者:</td><td><?php if($v['type'] == 0) { ?><?=$v['type_company']?><?php } else { ?><a href="space.php?uid=<?=$v['uid']?>"><?=$_SN[$v['uid']]?></a><?php } ?></td></tr>
<tr><td valign="top">活动类型:</td><td><?=$v['eventtype']?></td></tr>
<tr><td valign="top">活动地点:</td><td><?=$v['area']?></td></tr>
<tr><td valign="top">活动时间:</td><td><?=$v['start_time']?> 至 <?=$v['end_time']?></td></tr>
</tbody>
</table>
</div>
<div class="detail_action" id="div_<?=$v['id']?>">
<?=$v['form']?>
</div>
<div class="status"><a href="space.php?uid=<?=$v['uid']?>"><?=$_SN[$v['uid']]?></a> 发布于 <?=$v['dateline']?></div>
</td>
</tr>
</table>
</li>
<?php } ?>
<?php } } ?>
</ul>
<?php } } ?>
</div>
<?php } ?>
<div class="page" style="padding-top: 12px;"><?=$temp['html']?></div>
</div>
</div>

<?php if(empty($_SGLOBAL['inajax'])) { ?>
<?php if(empty($_TPL['nosidebar'])) { ?>
</div>
<!--/mainarea-->
<div id="bottom"></div>
</div>
<!--/main-->
<?php } ?>

<div id="footer" title="<?php echo debuginfo(); ?>">

<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
</p>

<?php if($_SGLOBAL['ad']['footer']) { ?>
<p style="padding:5px 0 10px 0;"><?php adshow('footer'); ?></p>
<?php } ?>

<p>
<?=$_SCONFIG['sitename']?> - 
<a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> - <a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
</p>
<p>
Powered by <a  href="http://u.discuz.net" target="_blank"><strong>UCenter Home</strong></a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
&copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<!--/wrap-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php } ?>
<?php if(!isset($_SCOOKIE['sendmail'])) { ?>
<script language="javascript"  type="text/javascript" src="do.php?ac=sendmail&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>

<?php if($_SGLOBAL['ad']['couplet']) { ?>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php } ?>

</body>
</html>
<?php } ?><?php ob_out();?>